const protocol = window.location.protocol;
const host = window.location.host;

const baseUrl = protocol + "//" + host;

let config = {};
if(process.env.NODE_ENV === "development"){
    config = {
        // basicProxy: "/dev",
        // basicProxy: "http://192.168.129.115:10349/office-platform/",
        // basicProxy: "http://192.168.122.120:42101/office-platform/",
        // basicProxy: "https://xdtest.aiedu100.com/office-platform/",
        basicProxy: "https://jdtest.aiedu100.com/edu-office-platform/",
        originUrl: baseUrl,
        appAddr: baseUrl,
        imageAddr: baseUrl + "/App_Themes/Skin/images"
    }
} else {
    config = {
        basicProxy: baseUrl + "/edu-office-platform/",
        originUrl: baseUrl,
        appAddr: baseUrl + "/platfrom/index.html",
        imageAddr: baseUrl + "/Web_PersonalCenter/web/App_Themes/Skin/images"
    }
}
window._BasicProxy = config.basicProxy;
export default config;